<template>
  <div id="Youhujuan">
    <el-table
            :data="tableBData"
            border
            style="width: 100%">
      <el-table-column prop="id" label="优惠券ID" width="180"></el-table-column>
      <el-table-column prop="name" label="优惠券名称" width="180"></el-table-column>
      <el-table-column prop="momery" label="优惠券金额"></el-table-column>
      <el-table-column prop="statetime" label="开始时间"></el-table-column>
      <el-table-column prop="stoptime" label="结束时间"></el-table-column>
      <el-table-column prop="time" label="创建时间"></el-table-column>
      <el-table-column prop="caozuo" label="创建人"></el-table-column>
      <el-table-column  label="操作">
        <template solt-scope="scope">
          <el-button style="color: blue" size="mini">编辑</el-button>
          <el-button style="color:red" size="mini">删除</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
  import * as url from '../api/hjw_houhui_api'
  export default {
    name: "Youhujuan",
    data(){
      return{
        tableBData:[]
      }
    },
    created() {
      this.$axios({
        url:url.GETROLL,
        method:"get",
      }).then(res=>{
        this.tableBData=res.data.data
      })
    }
  }
</script>

<style scoped>

</style>
